package main

import (
	"fmt"
	"time"
)

func main() {
	now := time.Now()
	fmt.Println(now)

	//                      %Y  %m %d %H %M %S
	dateStr := now.Format("2006-01-02 15:04:05")
	fmt.Println(dateStr)
}
